package com.jmp.feign;

import one.stand.fallback.LoginFallBack;
import one.stand.model.ResultModel;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author Administrator
 */
@Component
@FeignClient(value = "login-service", fallback = LoginFallBack.class, decode404 = true)
public interface LoginFegin {

    /**
     * 获取登陆地址
     *
     * @return
     */
    @PostMapping("home/getPcLoginImg")
    ResultModel<String> getPcLoginImg(@RequestParam("companyKey") String companyKey);
}
